package com.atguigu.classroom.live.utils;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class LivePropertiesUtils implements InitializingBean {
    @Value("${mtcloud.openId}")
    private String openId;
    @Value("${mtcloud.openToken}")
    private String openToken;
    public static String OPENID;
    public static String OPENTOKEN;
    @Override
    public void afterPropertiesSet() throws Exception {
        OPENID=openId;
        OPENTOKEN=openToken;
    }
}
